import { request } from '@umijs/max';

// 请求列表
export async function queryOutboundCallList(body: any, options?: { [key: string]: any }) {
  return request('/outboundcontroller/outboundcalllist', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

// 新增
export async function addOutboundCall(params: any, options?: { [key: string]: any }) {
  return request('/outboundcontroller/outboundcalladd', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: params,
    ...(options || {}),
  });
}

// 更新
export async function updateOutboundCall(body: any, options?: { [key: string]: any }) {
  return request('/outboundcontroller/outboundcallupdate', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

// 删除
export async function delOutboundCall(body: any, options?: { [key: string]: any }) {
  return request('/outboundcontroller/outboundcalldelete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

// 请求列表
export async function queryOutboundList(body: any, options?: { [key: string]: any }) {
  return request('/outboundcontroller/outboundlist', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

// 新增
export async function addOutboundList(params: any, options?: { [key: string]: any }) {
  return request('/outboundcontroller/outboundadd', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: params,
    ...(options || {}),
  });
}

// 更新
export async function updateOutboundList(body: any, options?: { [key: string]: any }) {
  return request('/outboundcontroller/outboundupdate', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

// 删除
export async function delOutboundList(body: any, options?: { [key: string]: any }) {
  return request('/outboundcontroller/outbounddelete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
